![]() | ![]() | ![]() | ![]() | ![]() |
SAS® Business Rules Manager might not generate DS2 code correctly for a rule flow. The problem occurs when rule flow has more than one rule set, and one of the rule sets contains a rule having OR logic.
There are no errors or warnings to indicate a problem.
To work around this problem, break compound rules into separate rules.
Click the Hot Fix tab in this note to access the hot fix for this issue.
EXAMPLE
A rule flow contains the following two rule sets.
Rule Set1: If (DAY=DAY) Then Top1=1; Top2=2 Rule Set2: If QUANTITY=1 Or QUANTITY=2 Or QUANTITY=3 Then Flag="fired"Run a test on the rule flow. The output result is wrong. When QUANTITY=2, the term Flag should be assigned to "fired". However, the assignment is not performed. See the screen shot.
You can examine the rule flow code by opening the rule flow. Click the Tests menu item. Click the Results tab. Click Code . The action expressions are assigned incorrectly for the OR rules, as displayed in this code:
The correct code should be the following:
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Business Rules Manager | Microsoft® Windows® for x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise 32-bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro 32-bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro 32-bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 R2 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 for x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Datacenter | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Datacenter | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Std | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Std | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Enterprise 32 bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Enterprise x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Home Premium 32 bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Home Premium x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Professional 32 bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Professional x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Ultimate 32 bit | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Ultimate x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
64-bit Enabled AIX | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
64-bit Enabled Solaris | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
HP-UX IPF | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Linux for x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 | ||
Solaris for x64 | 2.2 | 3.1 | 9.4 TS1M2 | 9.4 TS1M3 |